﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UIFW;

public class WelcomeUIForm : BaseUIForm {



    public void Awake()
    {
        CurrentUIType.uiShowMode = UIShowMode.HideOther;

        //开始游戏
        rigisterButtonEvent("BtnStartGame",
            p =>
            {
                //音效
                
                //TODO：进入大厅..
                closeUIForm();
                if (DemoProject.StartGame.dataLoad.playerInfo.name == "cmh")
                {
                    openUIForm("LoginUIForm");
                }
                else
                {
                    openUIForm("LobbyUIForm");
                }
            }

            );

        
    }
}
